package com.ycc.biz.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @ClassName: UserRegisterDto
 * @author: ycl
 * @date: 2025/03/18 15:33:57
 */
@Data
public class UserLoginDto implements Serializable {

    private static final long serialVersionUID = 3191241716373120793L;

    @NotBlank(message = "用户名不能为空")
    @ApiModelProperty("用户名")
    private String userAccount;

    @NotBlank(message = "密码不能为空")
    @Length(min = 6, message = "密码长度不能少于6位")
    @ApiModelProperty("密码")
    private String userPassword;
}
